﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Networking;

namespace ConsoleServer
{
    class Program
    {
        
        static void Main(string[] args)
        {
            SimpleGameServer server = new SimpleGameServer();
            server.Start();
            
            
            while (!Console.KeyAvailable || Console.ReadKey().Key != ConsoleKey.Escape)
            {
                server.RunOnce();
                System.Threading.Thread.Sleep(1);
            }
            server.Close();
        }
    }
}
